import numpy as np
import cv2

y, x = np.mgrid[0:4, 0:5]
print y.shape
print x.shape
z = np.stack((y,x), 2)
print z.shape
print z

"""
相当于：
for i in range(0,4):
	for j in range(0, 5):
		记录每个个点对(j, i)
"""
